package com.example.demo1.util;

public class StringUtil {

    /**
     * 字串为空和空字符串都返回true
     * 如果是非空及非空字符串返回false
     * */
    public static boolean isEmpty(String str){
        return str == null || "".equals(str);
    }

    public static boolean isNotEmpty(String str){
        return !isEmpty(str);
    }
}
